package org.person.gift.constans;

/**
 * 这是一个常量类,后续如果有其他的一些常量,都可以放在这个class里面
 */
public class BaseConstants {

    public static final String CAR_TYPE_TREE_IN_REDIS = "car_type_tree_in_redis";
    public static final String SEND_REGISTER_SMS_PREFIX = "send_register_sms_in_redis_";
    public static final String SEND_BIND_SMS_PREFIX = "send_bind_sms_in_redis_";

    //店铺状态
    public class  Shop{
        public static final int STATE_WAIT_AUDIT = 1 ; //"待审核";
        public static final int STATE_WAIT_ACTIVE = 2 ; //"审核通过，待激活";
        public static final int STATE_ACTIVE_SUCCESS = 3 ; //"激活成功";
        public static final int STATE_REJECT_AUDIT = 4 ; //"驳回";
    }

    // 店铺操作类型  1=入驻 2=审核成功 3=审核驳回 4=激活
    // ctrl+shift+u 可以转大写或小写
    // ctrl+alt+m 抽取方法
    public class  ShopOperateType{
        public static final int OPERATE_TYPE_REGISTER = 1 ; //入驻
        public static final int OPERATE_TYPE_AUDIT_SUCCESS = 2 ; //审核成功
        public static final int OPERATE_TYPE_AUDIT_REJECT = 3 ; //驳回
        public static final int OPERATE_TYPE_ACTIVE_SUCCESS= 4 ; //激活
    }

    //员工状态
    public class Employee{
        public static final int STATE_WAIT_AUDIT = -1 ; //"待激活",
        public static final int STATE_NORMAL = 1 ; //"正常",
        public static final int STATE_LOCK = 2 ; //"锁定",
        public static final int STATE_LOGOUT = 3 ; //"注销"
    }

    public class Car{
        public static final int CAR_STATE_ONSALE = 1 ; //上架
        public static final int CAR_STATE_OFFSALE = 0 ; //下架

        public static final int CAR_AUDIT_STATE_PASS = 1 ; //审核通过
        public static final int CAR_AUDIT_STATE_REJECT = 0 ; //审核驳回
    }

    public class CarOperateLog{
        public static final int CAR_OPERATE_TYPE_AUDIT_FAIL = 0 ; //审核失败
        public static final int CAR_OPERATE_TYPE_AUDIT_SUCCESS = 1 ; //审核成功
        public static final int CAR_OPERATE_TYPE_ONSALE = 2 ; //上架
        public static final int CAR_OPERATE_TYPE_OFFSALE = 3 ; //下架

    }

    //上架礼品的事务消息生产者配置
    public static final String GIFT_ONSALE_TX_PRODUCER_GROUP = "gift_onsale_tx_producer_group";
    public static final String GIFT_ONSALE_TX_TOPIC = "gift_onsale_tx_topic";
    public static final String GIFT_ONSALE_TX_TAG = "gift_onsale_tx_tag";

    //下架礼品的事务消息生产者配置
    public static final String GIFT_OFFSALE_TX_PRODUCER_GROUP = "gift_offsale_tx_producer_group";
    public static final String GIFT_OFFSALE_TX_TOPIC = "gift_offsale_tx_topic";
    public static final String GIFT_OFFSALE_TX_TAG = "gift_offsale_tx_tag";

    //上架礼品的事务消息消费者者配置
    public static final String GIFT_ONSALE_TX_CONSUMER_GROUP = "gift_onsale_tx_consumer_group";

    //下架礼品的事务消息消费者配置
    public static final String GIFT_OFFSALE_TX_CONSUMER_GROUP = "gift_offsale_tx_consumer_group";

    public static final Integer GIFT_AUDIT_SUCCESS = 1;
    public static final Integer GIFT_AUDIT_FAILED = -1;
    public static final Integer GIFT_AUDIT_WAIT = 0;
    public static final Integer GIFT_ONSALE = 2;
    public static final Integer GIFT_OFFSALE = 3;
}
